package ioc;
/**
 * 汽车类
 */
public class Car {
    private Framework framework;
    public Car(Framework framework) {
//        framework = new Framework(); // 传统写法
        this.framework = framework;
    }
    public void init() {
        System.out.println("Car init");
        framework.init();
    }
}
